<table id="user"></table>


<div id="user_tool" style="padding:5px;">
    <div style="margin-bottom:5px;">
        <a href="javascript:void(0)" class="easyui-linkbutton" plain="true" iconCls="icon-add" onclick="user_tool.add();">新增</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" plain="true" iconCls="icon-edit" onclick="user_tool.edit();">修改</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" plain="true" iconCls="icon-decline" onclick="user_tool.remove();">删除</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" plain="true" iconCls="icon-reload" onclick="user_tool.reload();">刷新</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" plain="true" iconCls="icon-redo" onclick="user_tool.redo();">取消选定</a>
    </div>
    <div style="padding:0 0 0 7px;color:#333;">
        查询帐号：<input type="text" class="textbox" name="search_username" style="width:110px;">
        创建时间从：<input type="text" name="date_from" editable="false" class="easyui-datebox"  style="width:110px;">
        到：<input type="text" name="date_to" editable="false" class="easyui-datebox"  style="width:110px;">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search" onclick="user_tool.search();">查询</a>
    </div>
</div>
<form id="user_add" style="margin:0;padding:5px 0 0 25px;color:#333;">
    <p>用户帐号：<input type="text" name="username" class="textbox" style="width:200px;"></p>
    <p>昵&nbsp;&nbsp;称：<input type="text" name="nick_name" class="textbox" style="width:200px;"></p>
    <p>用户密码：<input type="password" name="password" class="textbox" style="width:200px;"></p>
    <p>电子邮件：<input type="text" name="email" class="textbox" style="width:200px;"></p>
    <p>
        性&nbsp;&nbsp;别：
        <label><input type="radio" class="easyui-validatebox" checked="checked" name="sex" value="保密">保密</label>
        <label><input type="radio" class="easyui-validatebox" name="sex" value="男">男</label>
        <label><input type="radio" class="easyui-validatebox" name="sex" value="女">女</label>
    </p>
    <p>手&nbsp;&nbsp;机：<input type="text" name="phone" class="textbox" style="width:200px;"></p>
</form>
<form id="user_edit" style="margin:0;padding:5px 0 0 25px;color:#333;">
    <input type="hidden" name="edit_id">
    <p>用户帐号：<input disabled="true" type="text" name="edit_username" class="textbox" style="width:200px;"></p>
    <p>昵&nbsp;&nbsp;称：<input type="text" name="edit_nick_name" class="textbox" style="width:200px;"></p>
    <p>用户密码：<input type="password" name="edit_password" class="textbox" style="width:200px;"></p>
    <p>电子邮件：<input type="text" name="edit_email" class="textbox" style="width:200px;"></p>
    <p>
        性&nbsp;&nbsp;别：
        <label><input type="radio" class="easyui-validatebox" name="edit_sex" value="保密">保密</label>
        <label><input type="radio" class="easyui-validatebox" name="edit_sex" value="男">男</label>
        <label><input type="radio" class="easyui-validatebox" name="edit_sex" value="女">女</label>
    </p>
    <p>手&nbsp;&nbsp;机：<input type="text" name="edit_phone" class="textbox" style="width:200px;"></p>
</form>
<div id="user_show" style="margin:0;padding:5px 0 0 25px;color:#333;">查看用户</div>
<?php
Yii::app()->clientScript->registerScriptFile($this->baseUrl."/js/user.js",CClientScript::POS_END);
?>

